package connector;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class Connection3 {
    public static void main(String[] args) {
        String driverName = "com.mysql.jdbc.Driver";
        String url = "jdbc:mysql://localhost:3306/mysql?useSSL=false";
        String user = "root";
        String password = "it";

        try {
            Class<?> driverClass = Class.forName(driverName);

            Connection connection = DriverManager.getConnection(url, user, password);
            System.out.println(connection);

        } catch (ClassNotFoundException | SQLException e) {
            e.printStackTrace();
        }
    }
}
